export const getSkinSettings = () => {
  const themeData = {
    primaryColor: 'red',
    bgColor: '#ffb6c1',
    titleColor: '#ffffff',
    textColor: '#ffffff',
    bannerImages: 'https://p9-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/dd9dd0126a404dcb8a943dfab864c1cd~tplv-k3u1fbpfcp-watermark.image?',
  };
  return new Promise((resolve, reject) => {
    // 模拟后端接口访问，暂时用500ms作为延时处理请求
    setTimeout(() => {
      const resData = {
        code: 200,
        data: {
          ...themeData,
        },
      };
      // 判断状态码是否为200
      if (resData.code === 200) {
        resolve(resData);
      } else {
        reject({ code: resData.code, message: '网络出错了' });
      }
    }, 500);
  });
};
